package com.gtxd.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.gtxd.utils.CreateGUID;

/**
 * InnoDB free: 233472 kB
 * 
 * @author yangcheng
 * @email 717449318@qq.com
 * @date 2018-03-18 08:57:56
 */
@Entity
@Table(name = "doctorinfo")
public class Doctorinfo implements Serializable {
	private static final long serialVersionUID = 1L;

	// 医生编号
	private String dno;

	// 姓名
	private String dname;

	// 性别
	private Integer dsex;

	// 所属科室
	private String department;

	// 职务级别
	private String position;

	// 联系方式
	private String phone;

	// 看诊人数
	private Integer count;

	// 自增字段（冗余）
	private Integer seq;

	/**
	 * 无参构造
	 */
	public Doctorinfo() {
		super();
		this.dno = CreateGUID.generateGUID();
		this.count=0;
	}

	/**
	 * 设置：医生编号
	 */
	public void setDno(String dno) {
		this.dno = dno;
	}

	/**
	 * 获取：医生编号
	 */
	@Id
	@Column(name = "dno", insertable = false, unique = true, updatable = false)
	public String getDno() {
		return dno;
	}

	/**
	 * 设置：姓名
	 */
	public void setDname(String dname) {
		this.dname = dname;
	}

	/**
	 * 获取：姓名
	 */
	@Column(name = "dname")
	public String getDname() {
		return dname;
	}

	/**
	 * 设置：性别
	 */
	public void setDsex(Integer dsex) {
		this.dsex = dsex;
	}

	/**
	 * 获取：性别
	 */
	@Column(name = "dsex")
	public Integer getDsex() {
		return dsex;
	}

	/**
	 * 设置：所属科室
	 */
	public void setDepartment(String department) {
		this.department = department;
	}

	/**
	 * 获取：所属科室
	 */
	@Column(name = "department")
	public String getDepartment() {
		return department;
	}

	/**
	 * 设置：职务级别
	 */
	public void setPosition(String position) {
		this.position = position;
	}

	/**
	 * 获取：职务级别
	 */
	@Column(name = "position")
	public String getPosition() {
		return position;
	}

	/**
	 * 设置：联系方式
	 */
	public void setPhone(String phone) {
		this.phone = phone;
	}

	/**
	 * 获取：联系方式
	 */
	@Column(name = "phone")
	public String getPhone() {
		return phone;
	}

	/**
	 * 设置：看诊人数
	 */
	public void setCount(Integer count) {
		this.count = count;
	}

	/**
	 * 获取：看诊人数
	 */
	@Column(name = "count")
	public Integer getCount() {
		return count;
	}

	/**
	 * 设置：自增字段（冗余）
	 */
	public void setSeq(Integer seq) {
		this.seq = seq;
	}

	/**
	 * 获取：自增字段（冗余）
	 */
	@Column(name = "seq", insertable = false, unique = true, updatable = false)
	public Integer getSeq() {
		return seq;
	}

}
